<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script>
            new Promise((resolve, reject) => {
                    resolve(1)
            }).then(
                value=>{
                    console.log('onresobled1()',value)
                    // return 2
                    // return Promise.resolve(3)
                    // return Promise.reject(4)
                    // throw 5
                },
                reason=>{
                    console.log('onrejected1()',reason)
                }
            ).then(
                value=>{
                    console.log('onresobled2()',value)
                },
                reason=>{
                    console.log('onrejected2()',reason)
                }
            )
        </script>
    </body>
</html>